package com.huobao.yunying.adapters;

import android.content.Context;

import com.huobao.yunying.entity.CommitDetail;
import com.huobao.zhangying.R;

import joanzapata.android.BaseAdapterHelper;
import joanzapata.android.QuickAdapter;

/**
 * Created by Administrator on 2016/8/16.
 */
public class Adapter_DetailCommit extends QuickAdapter<CommitDetail> {
	public Adapter_DetailCommit(Context context) {
		super(context, R.layout.item_detail_commit);
	}

	@Override
	protected void convert(BaseAdapterHelper helper, CommitDetail commitDetail) {
		helper.setText(R.id.tv_title, commitDetail.buyer_name).setText(R.id.tv_time, commitDetail.evaluation_time).setText(R.id.tv_content, commitDetail.comment);
	}
}
